#ifndef _UTIL_H_
#define _UTIL_H_

#ifdef _GNU
#include <unistd.h>
#endif

#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <string.h>
#include <malloc.h>
#include <errno.h>
#include <assert.h>

#define ARRAY_LEN	    8
#define MY_RAND_MAX	    64
#define ELEMENTS_PER_LINE   8
#define REPEAT_TIME	    1000000UL

extern int iErrno;

void print_a(int a[], int n, FILE *f);
void print_a_range(int a[], int p, int r, FILE *f);
void swap(int *a, int *b);
int permute_in_place(void *pA, const int elem_size, const int p, const int r);
int not_uniq(int a[], int n);
/*void bubblesort(int a[], int n);*/

#endif
